home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntinc25 / errno.h < prev    next >
C/C++ Source or Header  |  1992-09-17  |  3KB  |  89 lines

  1. #ifndef _ERRNO_H
  2. #define _ERRNO_H
  3.  
  4. #ifndef _COMPILER_H
  5. #include <compiler.h>
  6. #endif
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #define    ENOERR          0        /* no error */
  13. #define E_OK          ENOERR    /*  "   "   */
  14. #define    EERROR          1        /* generic error */
  15.  
  16. #define    EDRNRDY          2        /* drive not ready */
  17. #define EDRVNR          EDRNRDY    /*   "    "    "   */
  18. #define    EUKCMD          3        /* unknown command */
  19. #define EUNCMD          EUKCMD    /*    "      "     */
  20. #define    ECRC          4        /* crc error */
  21. #define E_CRC          ECRC        /*  "   "    */
  22. #define    EBADREQ          5        /* bad request */
  23. #define EBADRQ          EBADREQ    /*  "    "     */
  24. #define    ESEEK          6        /* seek error */
  25. #define E_SEEK          ESEEK        /*   "    "   */
  26. #define    EUKMEDIA      7        /* unknown media */
  27. #define EMEDIA          EUKMEDIA    /*    "     "    */
  28. #define    ESECTOR          8        /* sector not found */
  29. #define ESECNF          ESECTOR    /*    "    "   "    */
  30. #define    EPAPER          9        /* no paper */
  31. #define    EWRITE         10        /* write fault */
  32. #define EWRITEF         EWRITE        /*   "     "   */
  33. #define    EREAD         11        /* read fault */
  34. #define EREADF         EREAD        /*  "     "   */
  35. #define    EGENERIC     12        /* general mishap */
  36. #define    EROFS         13        /* write protect */
  37. #define    ECHMEDIA     14        /* media change */
  38. #define E_CHNG         ECHMEDIA    /*   "     "    */
  39.  
  40. #define    EUKDEV         15        /* unknown device */
  41. #define EUNDEV         EUKDEV        /*    "      "    */
  42. #define    EBADSEC         16        /* bad sectors */
  43. #define EBADSF         EBADSEC    /*  "    "     */
  44. #define    EIDISK         17        /* insert disk */
  45. #define EOTHER         EIDISK        /*    "    "   */
  46.                     /* (gap) */
  47. #define    EINVAL         32        /* invalid function number */
  48. #define    ENOENT         33        /* file not found */
  49. #define ESRCH         ENOENT        /* pid not found */
  50. #define    EPATH         34        /* path not found */
  51. #define    EMFILE         35        /* no more handles */
  52. #define    EACCESS         36        /* access denied */
  53. #define    EACCES         36        /* access denied */
  54. #define EPERM         EACCESS    /*    "      "   */
  55. #define    EBADF         37        /* invalid handle */
  56. #define    ENOMEM         39        /* insufficient memory */
  57. #define    EFAULT         40        /* invalid memory block address */
  58. #define    ENXIO         46        /* invalid drive spec */
  59. #define    EXDEV         48        /* cross device rename */
  60. #define    ENMFILES     49        /* no more files (fsnext) */
  61. #define ENMFIL         49        /* no more files (from fsnext) */
  62.  
  63. #define    EBADARG         64        /* range error/context unknown */
  64. #define    EINTERNAL     65        /* internal error */
  65. #define EINTRN         EINTERNAL    /*    "       "   */
  66. #define    ENOEXEC         66        /* invalid program load format */
  67. #define EPLFMT         ENOEXEC    /*     "      "      "    "    */
  68. #define    ESBLOCK         67        /* set block failed/growth restraints*/
  69. #define EGSBF         ESBLOCK    /* or memory block growth failure */
  70.                     /* (gap) */
  71. # define EMLINK         80        /* too many symbolic links */
  72. # define EEXIST         85        /* file exists, try again later */
  73. # define ENAMETOOLONG      86        /* name too long */
  74. # define ENOTTY         87
  75. # define ERANGE         88
  76. # define EDOM         89
  77.  
  78. #define EINTR            128        /* this *should* be fake */
  79.  
  80. extern    int    errno;
  81. extern    int    sys_nerr;
  82. extern    char *    sys_errlist[];
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif /* _ERRNO_H */
  89.